#include "GamePaused.h"

GamePaused::GamePaused(GameState &state):
GameRoutine(state)
{
}

GamePaused::~GamePaused(void)
{
}

void GamePaused::run()
{
	if( view->keyInput.keyDown(KEY_ESC) )
		controller->running = false;
	if( view->keyInput.keyPressed(KEY_P) )
	{
		customModel->pauseAnim->hide();
		controller->swapState("running");
	}

	view->getInput();
}
